package aima.search;

import aima.cs.util.*;

/** Comparison function for uniform-cost search nodes.
*/

public final class UniformCostPredicate implements BinaryPredicate {

    public boolean evaluate(Object object1, Object object2) {

        return ( (SearchNode) object1).getPathCost()
             > ( (SearchNode) object2).getPathCost();

    }

}

